#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<stdbool.h>
 struct TreeNode {
     int val;
     struct TreeNode *left;
     struct TreeNode *right;
 };
 bool isSameTree(struct TreeNode* p, struct TreeNode* q) {
     if (p == NULL && q != NULL)
         return false;
     if (p != NULL && q == NULL)
         return false;
     if (p == NULL && q == NULL)
         return true;

     if (p->val == q->val)
         return  isSameTree(p->left, q->left)
         && isSameTree(p->right, q->right);
     else
         return false;
 }


 bool isSubtree(struct TreeNode* root, struct TreeNode* subRoot) {
     if (root == NULL)
         return false;
     if (isSameTree(root, subRoot))
         return true;
     return isSubtree(root->left, subRoot) || isSubtree(root->right, subRoot);
 }
int main()
{
	return 0;
}